home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Ham Radio 2000
/
Ham Radio 2000.iso
/
ham2000
/
bbs
/
rstrip10
/
rstrip.doc
< prev
next >
Wrap
Text File
|
1993-09-23
|
4KB
|
94 lines
RSTRIP - Utility to remove routing lines from packet radio messages
Version - 1.0
Author - Roy Sainsbury G0OSW
Syntax - RSTRIP Filespec (wildcards allowed).
File - RSTRIP.EXE
Source - RSTRIP.PAS
INTRODUCTION
This program removes the routing information (R:XXXX....") lines from packet
radio messages.
USEAGE
Simply type RSTRIP followed by a filespec. This may include drive and/or path
and wildcards, so that a group of files may be processed automatically. This
is especially useful for TPK users who can use this to remove all the routing
lines from all the files in their message lists. It is amazing how much disk
space can be recovered by doing this!
The following error messages may appear before processing begins. All of
these will terminate the program:
"Insufficient Memory"
Not enough memory for the directory.
"Path not found"
You supplied an illegal drive and/or path. also happens if the drive
is not ready or unreadable.
"No files found"
The path was OK but there's no files in it that match the filespec.
During processing, the names of the files being scanned will be shown. The
following messages will appear to the right of each filename after processing:
"Skipped!"
COM, EXE, BAT, BAK and $$$ files are skipped.
"Protected file - skipped!"
Read-only, Hidden and System files are protected and not processed.
"No Change!"
File contains no routing lines.
"n line(s) removed"
n routing lines were found and removed
"Cannot open file - Skipped"
Unlikely since the names are got from the directory!
"....Cannot open output file!"
Write-protected floppy or the output file (filename.$$$) already existed
and was read-only. This terminates the program.
"...cannot reset file"
Should never happen, but if it does it terminates the program.
"Line(s) longer than 254 characters"
One or more lines in the file is too long to process. The program pauses
here to allow you to write down the name for manual editing. Press any key
to process the next file.
At the end of the run, some statistics will be printed. Skipped files are not
included in this.
If you want to abort the program part-way through, hit ESC. This stops
processing when the current file is completed. The message "*** Aborted!"
is displayed.
LIMITATIONS
The program automatically skips EXE, COM and BAT files. All other files are
processed if included in the filespec. Normally, the files you want processed
will have the same extension (or in the case of TPK none at all), so you can
restrict processing to these files. However, if you have several sets of files
in the same directory with different extensions, and you also have other files
which must not be modified, either do them in groups (a batch file will be good
for this), or copy all the groups to a "junk" directory, process them as *.*
then copy those that have been modified back (If you use Attrib to clear the
archive bit before processing, XCOPY with the /M parameter will copy only those
modified files). Alternatively, set the files you don't want altered as read-
only then use *.*.
If you already have a file with the extension $$$ and it matches the filespec
if will be overwritten by the temporary file and deleted on completion. If
this file is read-only the first file requiring changing will cause the"Cannot
open output file" message to terminate the program.
On a few occasions, where the file being processed is corrupted, processing
the file may result in the creation of lines longer than 254 characters. This
will be evident if you run such a file through the program more than once.
In any event, the file is corrupt so it may as well be deleted.